package main

import (
	"fmt"
	"io/ioutil"
)
// ioutil 读文件
func readFromFileByIoutil() {

	ret, err := ioutil.ReadFile("./main.go")
	if err != nil{
		fmt.Printf("read file failed,err:%v\n",err)
		return
	}
	fmt.Println(string(ret))
}

func main() {

	readFromFileByIoutil()
}
